import easygui as g
import sys
while 1:
    g.msgbox('第一个界面小游戏')
    
    msg = '想学习什么'
    title = '小游戏互动'
    choices = ['AA','BB','CC','DD']
    choice = g.choicebox(msg,title,choices)
    
    g.msgbox('你的选择是：' + str(choice),'结果')
    
    msg = '想从新开始吗？'
    title = '请选择'
    if g.ccbox(msg,title):  #cc->Continue/Cancel
               pass
    else:
               sys.exit(0)
